#include <stdio.h>
#include <iostream>
#include "Queue.h"
#include "JobManager.h"
#include "CgManager.h"
#include <boost/ref.hpp>
using namespace std;


int main(int argc, char** argv)
{
	printf("HA\n");
	Queue<int> blah;
	int a, b;
	a = 5;
	b = 10;
	blah.enqueue(&a); 
	cout << *blah.peek();
	
	cout << "*************" << endl;
	
	JobManager jm;	
	boost::thread test(boost::ref(jm));
	Job c = Job(0);
	Job d = Job(2);
	jm.addJob(&c);
	jm.addJob(&d);
	jm.finish();
	
	CgManager *cm = new CgManager(argc, argv);
	boost::thread gl_context(boost::ref(*cm));

	cin.get();
	return 0;
}